import java.util.Scanner;

public class Ex6_2{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Enter 10 numbers: ");
		int[] num = new int[10];
		for (int i = num.length-1; i >= 0; i--){
			num[i] = input.nextInt();
		}

		for (int n:num){
			System.out.printf("%d ", n);
		}
	}
}